package com.aioz.security.common.enmus;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum RoleEnum implements IEnum<Integer> {

    Sysadmin(1,"系统管理员"),
    Admin(2,"管理员"),
    Hr(3,"招聘者"),
    JobSeeker(4,"求职者"),
    Root(5,"超级用户组");


    private Integer code;


    private String name;

    RoleEnum(Integer code,String name){
        this.code = code;
        this.name = name;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }

    public String getName(){
        return this.name;
    }

    @Override
    public String toString() {
        return this.name;
    }

}
